From b235fff0bf01c9476ea10337657bc4820f64e0cb Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Wed, 18 Apr 2007 14:37:49 +0000 Subject: [PATCH] Fix a leak by not increasing the refcount of the GtkRecentInfo object when 2007-04-18 Emmanuele Bassi * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix a leak by not increasing the refcount of the GtkRecentInfo object when returning it (thanks to Matthias Clasen). svn path=/trunk/; revision=17606 --- ChangeLog | 6 ++++++ gtk/gtkrecentmanager.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a7385ee155..dd038356fc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-18 Emmanuele Bassi + + * gtk/gtkrecentmanager.c (gtk_recent_manager_lookup_item): Fix + a leak by not increasing the refcount of the GtkRecentInfo + object when returning it (thanks to Matthias Clasen). + 2007-04-16 Alexander Larsson * gtk/gtkprintoperation.c (gtk_print_operation_run): diff --git a/gtk/gtkrecentmanager.c b/gtk/gtkrecentmanager.c index cc52a02ed6..05104737d0 100644 --- a/gtk/gtkrecentmanager.c +++ b/gtk/gtkrecentmanager.c @@ -1231,7 +1231,7 @@ gtk_recent_manager_lookup_item (GtkRecentManager *manager, return NULL; } - return gtk_recent_info_ref (info); + return info; } /** -- 2.30.2